package com.loveprogrammer.bytebuddy;

import net.bytebuddy.implementation.bind.annotation.AllArguments;
import net.bytebuddy.implementation.bind.annotation.Origin;

import java.lang.reflect.Method;

/**
 * @ClassName UserRepositoryInterceptor
 * @Description 委托函数
 * @Author admin
 * @Date 2024/5/7 17:37
 * @Version 1.0
 */
public class UserRepositoryInterceptor {

    public static String intercept(@Origin Method method, @AllArguments Object[] arguments) {
        return "小傅哥博客，查询文章数据：https://bugstack.cn/?id=" +
                arguments[0];
    }
}
